<?php $this->load->view('login/layout/header'); ?>
<header class="login-header am-cf">
    <a href="javascript:history.go(-1);" class="return-login">
        <i class="iconfont">&#xe60d;</i>
    </a>
    <div class="login-headText">注册</div>
    <a href="<?php echo site_url('login/login/index');?>" class="login-page">
        <i class="iconfont">&#xe613;</i>
    </a>
</header>
<div class="login-text sign-text widthMax" id="register-from">
    <a href="javascript:;" class="login-banner">
        <img src="skins/login/images/loginBanner.jpg">
    </a>
    <form method="post" data-am-validator>
        <input type="hidden" name="flag" value="<?php echo $this->input->get('flag'); ?>">
        <div class="login-form-input">
            <div class="login-input am-cf">
                <label>手&nbsp;&nbsp;机&nbsp;&nbsp;号：</label>
                <?php if ($this->input->get('backurl')) :?>
                    <input type="hidden" name="backurl" value="<?php echo $this->input->get('backurl');?>">
                <?php endif;?>
                <input type="text" name="username" required placeholder="请输入手机号">
            </div>
            <div class="login-input am-cf">
                <label>密　　码：</label>
                <input type="password" name="password" placeholder="请输入6-20位登录密码">
            </div>
            <div class="login-input am-cf">
                <label>确认密码：</label>
                <input type="password" name="confirmPassword" placeholder="请重新输入密码">
            </div>
            <div class="login-input am-cf sign-input">
                <label>验&nbsp;&nbsp;证&nbsp;&nbsp;码：</label>
                <input type="text" name="verify" placeholder="请输入手机验证码">
                <a href="javascript:;" class="sign-verify" id="getCaptcha">获取验证码</a>
            </div>
            <div class="login-input am-cf">
                <label>推&nbsp;&nbsp;荐 人：</label>
                <input type="text" name="parent_name" <?php if (!empty($parent_name)) : ?> readonly="readonly"<?php endif;?> value="<?php echo $parent_name;?>" placeholder="填写推荐人送300游币,若无请留空" >
            </div>
        </div>
        <a class="login-submit" id="register-submit" >注册</a>
    </form>
    <div class="login-bring">
        <p class="sign-clause">注册并接受<a href="<?php echo $this->config->www_base_url.'wap/scenic/wap_index/wap_rule.html';?>">《网站服务条款》</a></p>
    </div>
</div>
<?php $this->load->view('login/layout/footer'); ?>
